package org.example.demo;

import java.io.FileInputStream;

/**
 * @ClassName Demo5
 * @Description
 * @Author zhangsw
 * @Date 2020/11/9 16:22
 * @Version 1.0
 */
public class Demo5 {
    public static void main(String[] args) throws Exception {
        FileInputStream fis = new FileInputStream("bbb.txt");
        byte[] bytes = new byte[1024];
        int len = 0;
        while ((len = fis.read(bytes)) != -1) {
            System.err.println(new String(bytes, 0, len));
        }
        fis.close();
    }
}
